<template>
  <page-header-wrapper>
    <template v-slot:content>
      <div class="page-header-content">
        <div class="avatar">
          <a-avatar size="large" :src="currentUser.avatar" />
        </div>
        <div class="content">
          <div class="content-title">
            {{ timeFix }}，{{ currentUser.name }}
          </div>
          <div>欢迎使用后台管理系统</div>
        </div>
      </div>
    </template>
  </page-header-wrapper>
</template>

<script>
import { timeFix } from '@/utils/util'
import { PageHeaderWrapper } from '@ant-design-vue/pro-layout'

export default {
  name: 'Workplace',
  components: {
    PageHeaderWrapper,
  },
  data() {
    return {
      timeFix: timeFix(),
      avatar: '',
      user: {}
    }
  },
  computed: {
    currentUser() {
      return {
        name: '超级管理员',
        avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png'
      }
    },
    userInfo() {
      return this.$store.getters.userInfo
    }
  },
  created() {
  },
  methods: {

  }
}
</script>

<style lang="less" scoped>
@import "./Workplace.less";
/deep/.ant-page-header-heading-title {
  display: none;
}
</style>
